package view.swing.popup;

import static util.Strings.STR_ERROR_OCCURED;

import javax.swing.JOptionPane;

public class ErrorMessage extends AbstractMessage {

	public ErrorMessage(String message) {
		this(STR_ERROR_OCCURED, message);
	}

	public ErrorMessage(String title, String message) {
		super(title, message);
	}

	@Override
	public void show() {
		JOptionPane.showMessageDialog(null, message, title,
				JOptionPane.WARNING_MESSAGE);
	}

}
